package com.cn.shiro.zy.shiro.entity;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;

/**
 * @author zhangyi
 * @date 2018/12/11 17:30
 */
@Data
@Entity(name = "user")
public class User {

    @Id
    private Integer id;

    @Column(name = "user_name")
    private String userName;

    @Column(name = "pass_word")
    private String password;

    public User(Integer id,String userName, String password) {
        this.id = id;
        this.userName = userName;
        this.password = password;
    }
}
